package com.chixing.mapper;

import com.chixing.entity.Coupon;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author smith
 * @since 2025-05-21
 */
public interface CouponMapper extends BaseMapper<Coupon> {
    /**
     * 查询所有优惠券类型
     * @return 优惠券类型列表
     */
    @Select("SELECT DISTINCT coupon_type FROM coupon")
    List<String> selectAllCouponTypes();
}
